package cn.hy.visit;

public class LevelOneMember implements Member {


    public void visit(FruitMilkTea fruitMilkTea) {
        double discount = fruitMilkTea.getPrice() * 0.95;
        System.out.println("LevelOneMember fruitMilkTea  discount price :" + discount);
    }

    public void visit(PearMilkTea pearMilkTea) {
        double discount = pearMilkTea.getPrice() * 0.95;
        System.out.println("LevelOneMember pearMilkTea  discount price :" + discount);
    }
}
